package com.cmstop.bzgd.ui.util;

import com.cmstop.bzgd.beans.LookBackNewsDate;
import com.ruihang.generalibrary.utils.DateUtils;

import java.util.Comparator;

public class LookBackNewsDateComparator implements Comparator<LookBackNewsDate> {
    @Override
    public int compare(LookBackNewsDate o1, LookBackNewsDate o2) {
        return DateUtils.getDataDate(o2).compareTo(DateUtils.getDataDate(o1));
    }
}